.class Lrexsee/core/browser/RexseePrompt$28;
.super Ljava/lang/Object;
.source "RexseePrompt.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/RexseePrompt;->showColor(Lrexsee/core/browser/clazz/PromptArgumentsSheet;Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/RexseePrompt;

.field private final synthetic val$cell:Landroid/widget/LinearLayout;

.field private final synthetic val$color:I

.field private final synthetic val$demo:Landroid/widget/ImageView;

.field private final synthetic val$hexValue:Landroid/widget/TextView;

.field private final synthetic val$rgbValue:Landroid/widget/TextView;

.field private final synthetic val$table:Landroid/widget/LinearLayout;


# direct methods
.method constructor <init>(Lrexsee/core/browser/RexseePrompt;Landroid/widget/LinearLayout;Landroid/widget/LinearLayout;Landroid/widget/ImageView;ILandroid/widget/TextView;Landroid/widget/TextView;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/RexseePrompt$28;->this$0:Lrexsee/core/browser/RexseePrompt;

    iput-object p2, p0, Lrexsee/core/browser/RexseePrompt$28;->val$table:Landroid/widget/LinearLayout;

    iput-object p3, p0, Lrexsee/core/browser/RexseePrompt$28;->val$cell:Landroid/widget/LinearLayout;

    iput-object p4, p0, Lrexsee/core/browser/RexseePrompt$28;->val$demo:Landroid/widget/ImageView;

    iput p5, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    iput-object p6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$rgbValue:Landroid/widget/TextView;

    iput-object p7, p0, Lrexsee/core/browser/RexseePrompt$28;->val$hexValue:Landroid/widget/TextView;

    .line 557
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 12
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v9, 0x1

    const-string v11, ","

    const-string v10, "0"

    .line 560
    const/4 v2, 0x0

    .local v2, "k":I
    :goto_0
    iget-object v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$table:Landroid/widget/LinearLayout;

    invoke-virtual {v6}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v6

    if-lt v2, v6, :cond_3

    .line 567
    iget-object v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$cell:Landroid/widget/LinearLayout;

    const/4 v7, -0x1

    invoke-virtual {v6, v7}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 568
    iget-object v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$demo:Landroid/widget/ImageView;

    new-instance v7, Landroid/graphics/drawable/ColorDrawable;

    iget v8, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    invoke-direct {v7, v8}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v6, v7}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 569
    iget-object v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$rgbValue:Landroid/widget/TextView;

    new-instance v7, Ljava/lang/StringBuilder;

    iget v8, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    invoke-static {v8}, Landroid/graphics/Color;->red(I)I

    move-result v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, ","

    invoke-virtual {v7, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget v8, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    invoke-static {v8}, Landroid/graphics/Color;->green(I)I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ","

    invoke-virtual {v7, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget v8, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    invoke-static {v8}, Landroid/graphics/Color;->blue(I)I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 571
    iget v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    invoke-static {v6}, Landroid/graphics/Color;->red(I)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    .line 573
    .local v5, "red":Ljava/lang/String;
    iget v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    invoke-static {v6}, Landroid/graphics/Color;->green(I)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    .line 575
    .local v1, "green":Ljava/lang/String;
    iget v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$color:I

    invoke-static {v6}, Landroid/graphics/Color;->blue(I)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 576
    .local v0, "blue":Ljava/lang/String;
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v6

    if-ne v6, v9, :cond_0

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "0"

    invoke-direct {v6, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 577
    :cond_0
    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v6

    if-ne v6, v9, :cond_1

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "0"

    invoke-direct {v6, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 578
    :cond_1
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v6

    if-ne v6, v9, :cond_2

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "0"

    invoke-direct {v6, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 579
    :cond_2
    iget-object v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$hexValue:Landroid/widget/TextView;

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "#"

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 580
    return-void

    .line 562
    .end local v0    # "blue":Ljava/lang/String;
    .end local v1    # "green":Ljava/lang/String;
    .end local v5    # "red":Ljava/lang/String;
    :cond_3
    iget-object v6, p0, Lrexsee/core/browser/RexseePrompt$28;->val$table:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 563
    .local v4, "r":Landroid/widget/LinearLayout;
    const/4 v3, 0x0

    .local v3, "l":I
    :goto_1
    invoke-virtual {v4}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v6

    if-lt v3, v6, :cond_4

    .line 560
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_0

    .line 564
    :cond_4
    invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v6

    const v7, -0xbbbbbc

    invoke-virtual {v6, v7}, Landroid/view/View;->setBackgroundColor(I)V

    .line 563
    add-int/lit8 v3, v3, 0x1

    goto :goto_1
.end method
